Component({
  properties: {
    count: {
      type: Number
    },
    subed: {
      type: Boolean,
      value: false
    }
  },
  methods: {
    onClick() {
      console.log('click');
      if (this.data.subed) {
        console.log('click');
        this.triggerEvent('click');
      }
    }
  }
})